from paddleocr import PaddleOCR
from paddlex.inference.pipelines.ocr.result import OCRResult
ocr = PaddleOCR(
    use_doc_orientation_classify=False, 
    use_doc_unwarping=False, 
    lang="ch",
    use_textline_orientation=False) # 文本检测+文本识别
result = ocr.predict(input=["./img1.jpg","./img2.jpg"])
print(f"提示 : 返回结果的数据类型是 {type(result)}")
for res in result:
    # res.print()
    res.save_to_img("output")
    res.save_to_json("output")
    print(type(res))